// 子任务API
import {postAxios,getAxios, postDownloadAxios} from '@/lib/http';
  export const subTaskApi = {
    // 查询子任务列表
    getSubTaskByPage: (data) => {
      return postAxios('/subtask/page/querySubTask', data);
    },
    getSubTaskNodeAllInst: (data) => {
      return getAxios('/subTask/subTaskNodeAllInst/'+data);
    },
    resetSubTask: (data) => {
      return postAxios('/subTask/' + data + '/reset');
    },
    cancelSubTaskArchive: (data) => {
      return postAxios('/subTask/' + data + '/cancelarchive');
    },
    batchUpdateNodeInstProcessRelation: (data) => {
      return postAxios('/nodeInstProcessRelation/batchUpdate',data);
    },
  
    exportSubTaskInfo: (data) => {
      return postDownloadAxios('/subTask/' + data + '/export');
    }
  };
